import axios from "axios";

const token = sessionStorage.getItem('authentication');

export const getUserInfo = () =>
    axios({
        url: '/api/user',
        method: 'get',
        headers: {authentication: token}
    })

export const updateUserInfo = (data) =>
    axios({
        url: '/api/user',
        method: 'put',
        headers: {authentication: token},
        data: data
    })
